package web;/**
 * Created by aiqinag on 2017-06-26.
 */

import biz.Smbms_ProviderBiz;
import entity.Smbms_Provider;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.SessionAttributes;

import java.util.List;

/**
 * 拱商
 *
 * @author tom_plus
 * @date 2017-06-26-9:20
 */
@Controller
@RequestMapping("/provider")
@SessionAttributes(types = Smbms_Provider.class)
public class Smbms_ProviderWeb {

    @Autowired
    public Smbms_ProviderBiz providerBiz;

    @RequestMapping("/showProvider")
    public String showProvider(Model model){
        List<Smbms_Provider> list = this.providerBiz.selectPr();
        model.addAttribute("providerList",list);
        return "jsp/providerlist";
    }

}
